package o;

import android.content.Context;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.updatemanager.api.UpdateMgrFragmentProtocol;
import com.huawei.appgallery.updatemanager.ui.fragment.UpdateManagerFragment;
import com.huawei.appgallery.updatemanager.ui.widget.UpdateView;
import com.huawei.hmf.annotation.ApiDefine;

@ApiDefine(uri = czq.class)
public class dai implements czq {
    public View ˋ(Context context) {
        return new UpdateView(context);
    }

    public void ˊ(View view, boolean z) {
        if (view instanceof dbj) {
            ((dbj) view).ॱ(z);
        }
    }

    public void ˊ(View view, String str) {
        if (view instanceof dbj) {
            ((dbj) view).ˋ(str);
        }
    }

    public String ˋ(View view) {
        if (view instanceof dbj) {
            return ((dbj) view).ˊ();
        }
        return "";
    }

    public Fragment ॱ(UpdateMgrFragmentProtocol updateMgrFragmentProtocol) {
        return UpdateManagerFragment.ˏ(updateMgrFragmentProtocol);
    }
}
